//
//  LabelView.m
//  WeatherGuide
//
//  Created by lanou3g on 15/12/21.
//  Copyright © 2015年 李明. All rights reserved.
//

#import "LabelView.h"

@implementation LabelView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self allViews];
    }
    return self;
}

- (void)allViews
{
    CGSize size = self.bounds.size;
    
    self.leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, size.width / 2, size.height)];
    self.leftLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:self.leftLabel];
    
    self.rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(size.width / 2, 0, size.width / 2, size.height)];
    self.rightLabel.textAlignment = NSTextAlignmentRight;

    [self addSubview:self.rightLabel];

}



@end
